﻿@model Demo_test.ViewModel.AccountViewmodel
@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

@using (Html.BeginForm("Login", "Longin"))
{
    @ViewBag.Error
    <table cellpadding="1" cellspacing="1" border="1">
        <tr>
            <td>@Html.LabelFor(a=>a.account.Username)</td>
            <td>@Html.TextBoxFor(m=>m.account.Username)</td>
        </tr>
        <tr>
            <td>@Html.LabelFor(a => a.account.Password)</td>
            <td>@Html.PasswordFor(m => m.account.Password)</td>
        </tr>
        <tr>
           <td></td>
            <td><input type="submit" value="Login" /></td>
        </tr>

    </table>
}